package com.sc.nft.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sc.nft.entity.PledgeTaskInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.sc.nft.entity.vo.AdminPagePledgeTaskVO;
import com.sc.nft.entity.vo.SecretAreaPageVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

/**
 * 质押任务(秘境)主表(sc_pledge_task_info)数据Mapper
 *
 * @author Sun
 * @since 2023-06-12 15:36:35
 * @description 由 Mybatisplus Code Generator 创建
*/
@Mapper
public interface PledgeTaskInfoMapper extends BaseMapper<PledgeTaskInfo> {

    /**
     * 分页查询质押任务列表
     * @param page
     * @param pledgeTaskName
     * @return
     */
    Page<AdminPagePledgeTaskVO> adminPagePledgeTask(Page  page,@Param("pledgeTaskName") String pledgeTaskName);

    /**
     * APP秘境列表
     * @param page
     * @return
     */
    Page<SecretAreaPageVO> secretAreaPage(Page page);

    /**
     * 修改任务参加人数
     * @param id
     * @return
     */
    Boolean updateJoinCount(@Param("id") Long id);
}
